package dome5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2024-05-30
 * Time: 20:48
 */
public class Login {
    public static void test(String name,String str) {
        User user = new User();
        try{
            user.logInfo(name, str);
        }catch (PasswordException e) {
            e.printStackTrace();
        }catch (NameException e) {
            e.printStackTrace();
        }
    }
    public static void main(String[] args) {
        test("wyh","123");
    }
}
